package cn.tedu.reflection;/**
 * @Author 金帮嘉诚 @Date 2021-06-25 星期五 9:38
 */
/*本类用于测试*/

/**知识点*/
public class Student {
    public String name;
    int age;

    public Student() {
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }
    public void play(int n){
        System.out.println("Play "+n);
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public void eat(){

        System.out.println("Eat");
    }
}
